package com.fbee.smartcommunities.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fbee.smartcommunities.entity.OrderGoods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fbee.smartcommunities.vo.OrderGoodsVO;
import com.fbee.smartcommunities.vo.OrderVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 订单商品关系表 服务类
 * </p>
 *
 * @author 汪佳泉
 * @since 2024-08-27
 */
public interface OrderGoodsService extends IService<OrderGoods> {

    boolean add(Long orderId,Long goodsId,Integer count);

    List<OrderVO> getOrders(Long uid);

    Boolean trade(Long from, Long to, Double count, Long id, Integer sum, Long goodsId, HttpServletRequest request);

    Boolean delete(Long id);

    IPage<OrderGoodsVO> getOrdersByCid(Long openId, String key, Integer pageNo, Integer pageSize);
}
